home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / dskutil / ideinf10.zip / IDEINFO.TXT < prev   
Text File  |  1994-08-03  |  10KB  |  245 lines

  1. IDEINFO.EXE                                     Page 1
  2.  
  3.                 Contents
  4.  
  5.         Introduction.......................... 1
  6.         Output................................ 2
  7.         How to interpret the output........... 3
  8.         Some notes............................ 5
  9.         Credits............................... 5
  10.         Me.................................... 5
  11.  
  12.  
  13. Introduction
  14. -------------
  15.  
  16. Try ? or H as parameter and you will see a short description on possible
  17. parameters. This is what the output looks like:
  18. ___________________________________________________________________________
  19. IDEINFO [[H] || [?] || [R]] || [[F]] [P xxx] [P xxx].. ]]
  20.  
  21. Tries to tell all about all IDE drives, including ATA-2 stuff.
  22.  
  23. Options may be preceded with -, / or none
  24. -H or -? prints this help.
  25. -R Reads idedrive.* files from current directory.
  26. -F Writes drive identify info to idedrive.* files to current directory.
  27. -P xxx looks only adapter at port xxx, xxx in hex format
  28.  
  29. File extension is next available number when writing.
  30.  
  31. File size is 512 bytes.
  32. You may redirect output.
  33.  
  34. Example: Look only for adapters at 1F0h (primary) and 170h (normal secondary)
  35. and write info to files.
  36. IDEINFO P 1f0 P 170 F
  37. _________________________________________________________________________
  38.  
  39.  
  40. Default action is to scan all four addresses mentioned in ATA-2 draft spec
  41. for IDE adapters(1f0h, 0170h, 0f0h, 070h), if found, report characteristics
  42. of master drive and search also for slave.
  43.  
  44.  
  45.                                                Page 2
  46. Output
  47. --------
  48.  
  49. Output for a normal ATA (not ATA-2) drive looks like this:
  50. Note: Identify Device Information words used are in brackets.
  51. ____________________________________________________________________________
  52. DRIVE 0 Adapter 1 at base address 170h
  53.                         Disk Reports    BIOS Reports
  54.                     Default     Current
  55. # of Cylinders______: 665 [1]     665 [54]  0
  56. # of Heads__________:  16 [3]      16 [55]  0
  57. # of Sectors/Track__:  63 [6]      63 [56]  0
  58. Model Number________: Conner Peripherals 340MB - CFA340A [27-46]
  59. Serial Number_______:           BQBA27A                  [10-19]
  60. Controller Rev. #___: 6FT1.70                            [23-26]
  61. Double Word Transfer:     No                             [48]
  62. Controller type_____: a dual ported multi-sector buffer capable of simultaneous
  63.                       transfers with a read caching capability. [20]
  64. Buffer size (kB)____:     64 [21]
  65. # of ECC bytes______:      4 [22]
  66. # of secs/interrupt_:     64[47]Current setting  16 [59]
  67. LBA support               No [49],[60-61],[53],[57-58]
  68. DMA support              Yes [49]
  69. IORDY supported           No [49]
  70. IORDY can be disabled     No [49]
  71. PIO data txfer cycle timing mode:       1 [51]
  72. SW DMA txfer cycle timing modes:       [62]  Active [62]
  73. MW DMA txfer cycle timing modes:        0    Active 0 [63]
  74. Sorry, no ATA-2 features implemented
  75.  
  76. Adapter 1 at 170h Drive 1 not found
  77. Last status  0h
  78.  
  79. _________________________________________________________________________
  80. The output above was generated running under OS/2 2.11. For some reason
  81. OS/2 lets user programs access secondary adapters and correctly inhibits
  82. access to primary adapter. Note the effect of /SMS (Set Multiple Support)
  83. parameter of OS/2 IDE driver IBM1S506.ADD (# of secs/interrupt_:,
  84. Current setting  16 ).
  85.  
  86.  
  87. For newer drives you might get also  something like this:
  88. _______________________________________________________________________
  89. Congratulations, your drive supports ATA-2 [53]
  90. Advanced PIO txfer modes supported:                3 [64]
  91. Min MW DMA txfer cycle time/word:                363 ns   5.5MB/s  [65]
  92. Mfg Recommended MW DMA txfer Cycle Time          363 ns   5.5MB/s  [66]
  93. Min PIO txfer Cycle Time w/o Flow Control        363 ns   5.5MB/s  [67]
  94. Min PIO txfer Cycle Time w IORDY Flow Control    250 ns   8.0MB/s  [68]
  95. ________________________________________________________________________
  96.  
  97. For ATA-2 reference I used Revision 2c April 29, 1994. I may have messed
  98. up some interpretations of spec, hope not too many.
  99.  
  100.  
  101.                                                Page 3
  102.  
  103. How to interpret the output
  104. ---------------------------
  105.  
  106. For a more complete reference you should get ATA-2 spec (draft) from:
  107.  
  108. ATA Anonymous FTP Site
  109. fission.dt.wdc.com
  110. ATA directory is:  "/pub/ata"
  111.  
  112. SCSI Bulletin Board 719-574-0424
  113.  
  114. Document Distribution
  115. Global Engineering
  116. 15 Inverness Way East
  117. Englewood, CO   80112-5704
  118. Tel: 303 -792-2181 or  800-854-7179
  119. Fax: 303 -792-2192
  120.  
  121. Translation:
  122. ------------
  123.                         Disk Reports
  124.                     Default     Current
  125. # of Cylinders______: 665         665
  126. # of Heads__________:  16          16
  127. # of Sectors/Track__:  63          63
  128.  
  129. First column is default translation and next is current. Current may be all
  130. -1 if validity bit is not set. Some drives accept any translation that doesn't
  131. exceed capacity and some accept only one translation.
  132.  
  133. Multiple sector setting:
  134. ------------------------
  135. Normally the drive generates an interrupt for each sector read/written
  136. but enabling multiple sector setting and using read/write multiple commands
  137. enables the drive controller to work more efficiently and saves CPU cycles
  138. because interrupt is generated and processed only once for a given number
  139. of sectors. You must have BIOS support or a software driver to utilize this.
  140. Some drives get 30% boost, others only %5.
  141.  
  142. Buffer size (kB)____:     64
  143. # of secs/interrupt_:     64    Current setting  16
  144.  
  145. If Buffer size is half of secs/interrupt value and "Current setting" is
  146. missing the drive doesn't most propably support multiple sector per interrupt
  147. feature. If "Current setting" is shown the drive should work with multiple
  148. sector per interrupt.
  149.  
  150. LBA support
  151. -----------
  152. Found in most drives with capacity over 528MB. Normal BIOS and IDE translation
  153. parameters together have a limit of 528MB. BIOS alone has a 8GB limit.
  154. IDE alone has a 137GB limit. LBA (Logical Block Address) uses no translation
  155. and blocks or sectors are addressed with 0 to a device specific maximum LBA
  156. number. The maximum LBA number cannot exceed 268 435 455 (137GB). Using LBA
  157. should save some CPU cycles.
  158.  
  159. DMA support
  160. -----------
  161. DMA (Direct Memory Access) means that the device writes directly to main
  162. memory thus freeing CPU from I/O handling. The other transfer mode is PIO
  163. (Programmable I/O). ISA bus has a limit of 16MB DMA addressable memory.
  164.                                                Page 4
  165.  
  166. IORDY supported
  167. ---------------
  168. IORDY is needed with PIO mode 3
  169.  
  170. Transfer modes
  171. --------------
  172.  
  173.      +----------------------------------------------------------------------+
  174.      | PIO                                      |Mode 0|Mode 1|Mode 2|Mode 3|
  175.      | timing parameters                        | nsec | nsec | nsec | nsec |
  176. +----+------------------------------------------+------+------+------+------+
  177. | t0 | Cycle time (1)                     (min) | 600  | 383  | 240  | 180  |
  178.        Transfer rate (calculated) MB/s          | 3.3  | 5.2  | 8.3  | 11.1 |
  179.  
  180. Modes 0 .. 2 are included in ATA spec, PIO mode 3 in ATA-2.
  181.  
  182.      +----------------------------------------------------------+
  183.      | Single word DMA                  | Mode 0| Mode 1| Mode 2|
  184.      | timing parameters                |  nsec |  nsec |  nsec |
  185. +----+----------------------------------+-------+-------+-------|
  186. | t0 | Cycle time                 (min) |  960  |  480  |  240  |
  187. | Transfer rate (calculated) MB/s       |  2.1  |  4.2  |  8.3  |
  188.  
  189.  
  190.       +----------------------------------------+-----------+
  191.       | Multiword DMA              |   Mode 0  |   Mode 1  |
  192.       | timing parameters          |    nsec   |    nsec   |
  193.       |                            | Min | Max | Min | Max |
  194. +-----+----------------------------+-----+-----|-----+-----|
  195. | t0  | Cycle time                 | 480 |     | 150 |     |
  196. | Transfer rate (calculated) MB/s  | 4.2 |     | 13.3|     |
  197.  
  198. DMA mode 0 is included in ATA spec, mode 1 in ATA-2.
  199.                                                Page 5
  200.  
  201.  
  202. Some notes
  203. ----------
  204.  
  205. IDEINFO was compiled with BC++ 3.1 using 286 intructions. XT or 8-bit
  206. interfaces were not even considered, so you should have a 286 or better
  207. to use this program.
  208. Currently IDEINFO tries to read idedrive.0 .. idedrive.99 files with R
  209. parameter. I hope that 100 files is enough for a while. Increasing it
  210. would slow it down or extensions would have to be in sequence.
  211. The line
  212. # of secs/interrupt_:     64[47]Current setting  16 [59]
  213. apparently tells also if OS/2 (2.1, 2.11) IBM1S506.ADD will support
  214. /SMS parameter. Word 59 has a validity bit and if it is not set
  215. "Current setting" will not be displayed and IBM1S506.ADD ignores /SMS.
  216. There are some drives that have validity bit set but still IBM1S506.ADD
  217. ignores /SMS but the only such drive I have encountered is Seagate ST3391A.
  218.  
  219. I am not sure about which last status values (displayed when adapter is
  220. not found) mean that there is no device responding. I have seen 7fh on
  221. EISA bus machine and OS/2, ffh on others. If you see some other value there
  222. is propably something using that address.
  223.  
  224.  
  225. Credits
  226. --------
  227.  
  228. Great help in getting started was the source code of:
  229. DUG_IDE : Provides IDE disk info on both drives in the system
  230.           Version 1.0
  231. Copyright (c) 12 Jan 1993 by Doug Merrett - All rights reserved
  232.  
  233. Linux 1.1 kernel sources were also consulted.
  234.  
  235.  
  236.  
  237. Me
  238. ---
  239.  
  240. Copyright (c) July 1994 by Raimo Koski - All rights reserved
  241. Postal Address: Uudenmaantie 23 K 3
  242.                 20720
  243.                 Finland
  244.  
  245.